package com.xinweisi.dataserver.module.memberdata.onlinemember;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinweisi.dataserver.module.memberdata.onlinemember.domain.dto.OnLineMemberQueryDTO;
import com.xinweisi.dataserver.module.memberdata.onlinemember.domain.entity.OnLineMemberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface OnlineMemberDao extends BaseMapper<OnLineMemberVO> {

    /**
     * 查询所有在线会员（分页）
     *
     * @param queryDTO
     * @return
     */
    List<OnLineMemberVO> selectOnLineMemberList(@Param("queryDTO") OnLineMemberQueryDTO queryDTO);

    /**
     * 判断表是否存在
     *
     * @param tableName
     * @return
     */
    int existTable(@Param("tableName") String tableName);

}
